/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 获取 POST /publicity/open/info/getData */
export async function publicityOpenInfoGetDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityOpenInfoGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPublicityInfoVo>('/publicity/open/info/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /publicity/open/info/pageData */
export async function publicityOpenInfoPageDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityOpenInfoPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoPublicityInfoVo>(
    '/publicity/open/info/pageData',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
